﻿using BCCommon;
using BCDto.OA.Notification.NotificationCategoryMappingDepartment;
using System;
using System.Collections.Generic;
using System.Text;

namespace BCService.OA.Notification.NotificationCategoryMappingDepartment
{
    /// <summary>
    /// OA系统通知分类与部门关系映射
    /// </summary>
	public interface INotificationCategoryMappingDepartmentService
    {
        #region  成员方法
        /// <summary>
        /// 是否存在此记录
        /// </summary>
        /// <param name="notificationCategoryMappingDepartmentId">OA系统通知分类与部门关系映射Id</param>
        bool Exists(long notificationCategoryMappingDepartmentId);
        /// <summary>
        /// 添加OA系统通知分类与部门关系映射
        /// </summary>
        /// <param name="requestDto">OA系统通知分类与部门关系映射信息</param>
        NotificationCategoryMappingDepartmentDto Add(NotificationCategoryMappingDepartmentRequestDto requestDto);
        /// <summary>
        /// 更新OA系统通知分类与部门关系映射
        /// </summary>
        /// <param name="putDto">OA系统通知分类与部门关系映射信息</param>
        NotificationCategoryMappingDepartmentDto Update(NotificationCategoryMappingDepartmentPutDto putDto);
        /// <summary>
        /// 删除OA系统通知分类与部门关系映射
        /// </summary>
        /// <param name="notificationCategoryMappingDepartmentId">OA系统通知分类与部门关系映射Id</param>
        bool Delete(long notificationCategoryMappingDepartmentId);
        /// <summary>
        /// 获取OA系统通知分类与部门关系映射
        /// </summary>
        /// <param name="notificationCategoryMappingDepartmentId">OA系统通知分类与部门关系映射Id</param>
        NotificationCategoryMappingDepartmentDto GetEntity(long notificationCategoryMappingDepartmentId);
        /// <summary>
        /// 获取OA系统通知分类与部门关系映射列表
        /// </summary>
        IEnumerable<NotificationCategoryMappingDepartmentDto> GetList();
        /// <summary>
		/// 获取OA系统通知分类与部门关系映射分页列表
		/// </summary>
		/// <param name="notificationCategoryName">通知分类名称</param>
		/// <param name="start">开始时间</param>
		/// <param name="end">结束时间</param>
		/// <param name="pageIndex">当前页码</param>
		/// <param name="pageSize">OA系统通知分类与部门关系映射每页数据条数</param>
		PageableList<NotificationCategoryMappingDepartmentDto> Query(string notificationCategoryName, DateTime? start, DateTime? end, int pageIndex, int pageSize);
        #endregion  成员方法
    }
}
